<template>
	<div class="evidence-unit-casePrint-container">
		<el-dialog title="电子签名" class="el-dialog" v-model="isShowDialog" width="450px" align="center">
			<el-card> 这里显示签名图片 </el-card>
			<template #footer>
				<span class="dialog-footer">
					<el-button @click="onCancel" size="small">取 消</el-button>
					<el-button type="primary" @click="onSubmit" size="small">确 定</el-button>
				</span>
			</template>
		</el-dialog>
	</div>
</template>

<script lang="ts">
import { reactive, toRefs } from 'vue';

export default {
	name: 'sign',
	setup() {
		const state = reactive({
			isShowDialog: false,
		});
		// 打开弹窗
		const openDialog = () => {
			state.isShowDialog = true;
		};
		// 关闭弹窗
		const closeDialog = () => {
			state.isShowDialog = false;
		};
		// 取消
		const onCancel = () => {
			closeDialog();
		};

		return {
			openDialog,
			closeDialog,
			onCancel,
			...toRefs(state),
		};
	},
};
</script>
